package com.lazyboyl.sharding.proxy.config;

/**
 * @author linzef
 * @since 2021-06-29
 * 类描述：netty的配置类
 */
public enum NettyConfigEnum {

    SO_TIMEOUT("用于设置接受数据的等待的超时时间，单位为毫秒，它的默认值是0，表示无限等待", 600),
    CONNECT_TIMEOUT_MILLIS("超过某个时间节点，则直接断开连接", 5000);

    private String description;

    private Object value;

    NettyConfigEnum(String description, Object value) {
        this.description = description;
        this.value = value;
    }

    public String getDescription() {
        return description;
    }

    public String getStrValue() {
        return (String) value;
    }

    public Integer getIntegerValue() {
        return (Integer) value;
    }

}
